package com.zador.testdemo;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

import java.util.List;

import cn.bmob.v3.Bmob;
import cn.bmob.v3.BmobQuery;
import cn.bmob.v3.exception.BmobException;
import cn.bmob.v3.listener.FindListener;
import cn.bmob.v3.listener.QueryListener;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Bmob.initialize(this, "9cf6ffe4f964af6c124dc3691b139fe5");
        BmobQuery<TestA> bmobQuery = new BmobQuery<>();
        bmobQuery.addWhereEqualTo("name","hahaha");
        bmobQuery.findObjects(new FindListener<TestA>() {
            @Override
            public void done(List<TestA> list, BmobException e) {
                if(e!=null){}
                else{}
            }
        });
    }
}
